package com.bistu.xiong.factory.bean;

import com.bistu.xiong.factory.model.db.User;

import java.util.Date;
import java.util.List;

/**
 * Created by XiongXiaoJun on 2017/12/21.
 * 用户的帖子
 */

public class UserPost {
    public final static int TOPIC_FOR_TODAY = 1;
    public final static int USER_POST = 0;
    private User user;
    private String content;
    private List<String> messagePics;
    private Integer discussNum;
    private Integer likeNum;
    private Integer mType;
    private Date createTime;
    private Date updateTime;

    public UserPost(){

    }
    public UserPost(User user, String content, List<String> messagePics, Integer discussNum, Integer likeNum, Integer mType, Date createTime, Date updateTime) {
        this.user = user;
        this.content = content;
        this.messagePics = messagePics;
        this.discussNum = discussNum;
        this.likeNum = likeNum;
        this.mType = mType;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public static int getTopicForToday() {
        return TOPIC_FOR_TODAY;
    }

    public static int getUserPost() {
        return USER_POST;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getMessagePics() {
        return messagePics;
    }

    public void setMessagePics(List<String> messagePics) {
        this.messagePics = messagePics;
    }

    public Integer getDiscussNum() {
        return discussNum;
    }

    public void setDiscussNum(Integer discussNum) {
        this.discussNum = discussNum;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getmType() {
        return mType;
    }

    public void setmType(Integer mType) {
        this.mType = mType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
